home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / swaga_c.zip / ANSI.SWG / 0004_Direct ANSI Display.pas < prev    next >
Pascal/Delphi Source File  |  1993-05-28  |  861b  |  21 lines

  1. {
  2. DUSTIN NULF
  3.  
  4. I've run into that familiar problem in trying to view Ansi colored pictures and
  5. using the Crt Unit at the same time.  The Crt Unit
  6. doesn't translate the Ansi codes and displays them literally.  Now,
  7. I've created an Ansi interpreter Procedure that reads each line in
  8. an ansi File and calls the appropriate TextColor/TextBackground Procedures,
  9. according to what ansi escape String was found.  This
  10. is groovy and all, but I just found out something new today With:
  11. }
  12. Assign(Output,'');
  13. ReWrite(Output);
  14. {
  15. ...and that it translates all the ansi codes For me already!  Now,
  16. the big question is, what are the advantages and disadvantages
  17. of using this Assign method vs. the Ansi interpreter method?  Is
  18. this Assign method slower/faster, take up more memory, more disk
  19. space, etc.  Any information would be highly appreciated! :)
  20. }
  21.